package com.virtualperson.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "aliyun")
public class TtsConfig {
    private String apiKey;  // 使用主配置中的api-key
    private TtsProperties tts = new TtsProperties();

    @Data
    public static class TtsProperties {
        private String model = "sambert-zhichu-v1"; // 默认使用知厨模型
        private String format = "WAV";          // 默认WAV格式
        private int sampleRate = 16000;         // 默认采样率
        private int volume = 50;                // 默认音量
        private float rate = 1.0f;              // 默认语速
        private float pitch = 1.0f;             // 默认语调
    }
} 